//---------------------------------------------------------------------
// This file is part of the Microsoft BizTalk Server 2006 SDK
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is intended only as a supplement to Microsoft BizTalk
// Server 2006 release and/or on-line documentation. See these other
// materials for detailed information regarding Microsoft code samples.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, WHETHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//---------------------------------------------------------------------
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Text.RegularExpressions;
using System.Diagnostics;
using System.Collections.Generic;

namespace MsPartners.Unisys.BizTalkAdapters.AdapterWizard
{
	public class WzPageReceiveProperties : Microsoft.BizTalk.Wizard.WizardInteriorPage, IWizardControlInterface
	{
		public event AddReceiveHandlerPropertyEvent addReceiveHandlerPropertyEvent; 
		public event AddReceiveEndpointPropertyEvent addReceiveEndpointPropertyEvent; 
		private bool isLoaded = false;
		private List<AdapterProperty> receiveHandlerProperties = new List<AdapterProperty>();
		private List<AdapterProperty> receiveEndpointProperties = new List<AdapterProperty>();
		private System.Windows.Forms.Button cmdReceiveHandlerDel;
		private System.Windows.Forms.Button cmdReceiveHandlerAdd;
		private System.Windows.Forms.ComboBox cmbReceiveHandlerDataType;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.ListBox lstReceiveHandlerProperties;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox txtReceiveHandlerNodeName;
		private System.Windows.Forms.Button cmdReceiveEndpointDel;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Button cmdReceiveEndpointAdd;
		private System.Windows.Forms.ListBox lstReceiveEndpointProperties;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.TextBox txtReceiveEndpointNodeName;
		private System.Windows.Forms.ComboBox cmbReceiveEndpointDataType;
		private System.Windows.Forms.ErrorProvider errorProvider;
		private System.Windows.Forms.GroupBox grpHandler;
		private System.Windows.Forms.GroupBox grpEndpoint;
		private Label label5;
		private TextBox txtReceiveHandlerFriendlyName;
		private Label label6;
		private TextBox txtReceiveHandlerDesc;
		private Label label7;
		private TextBox txtReceiveEndpointDesc;
		private Label label8;
		private TextBox txtReceiveEndpointFriendlyName;
		private CheckBox chkPartOfURI;
		private System.ComponentModel.IContainer components = null;

		public WzPageReceiveProperties()
		{
			// This call is required by the Windows Form Designer.
			InitializeComponent();

			// TODO: Add any initialization after the InitializeComponent call
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		public bool NextButtonEnabled
		{
			get {	return true;	}
		}

		public bool NeedSummary
		{
			get {	return false;	}
		}

		protected void AddReceiveHandlerProperty(string strName,AdapterProperty adapterProperty)
		{
			PropertyPairEvent PropertyPair = new PropertyPairEvent(strName, adapterProperty);
			OnAddReceiveHandlerProperty(PropertyPair);
		}

		protected void RemoveReceiveHandlerProperty(string strName)
		{
			PropertyPairEvent PropertyPair = new PropertyPairEvent(strName,null,true);
			OnAddReceiveHandlerProperty(PropertyPair);
		}

		// The protected OnAddReceiveHandlerProperty method raises the event by invoking 
		// the delegates. The sender is always this, the current instance 
		// of the class.
		protected virtual void OnAddReceiveHandlerProperty(PropertyPairEvent e)
		{
			if (e != null) 
			{
				// Invokes the delegates. 
				addReceiveHandlerPropertyEvent(this,e);
			}
		}
		
		protected void AddReceiveEndpointProperty(string strName,AdapterProperty adapterProperty)
		{
			PropertyPairEvent PropertyPair = new PropertyPairEvent(strName,adapterProperty);
			OnAddReceiveEndpointProperty(PropertyPair);
		}

		protected void RemoveReceiveEndpointProperty(string strName)
		{
			PropertyPairEvent PropertyPair = new PropertyPairEvent(strName,null,true);
			OnAddReceiveEndpointProperty(PropertyPair);
		}

		// The protected OnAddReceiveEndpointProperty method raises the event by invoking 
		// the delegates. The sender is always this, the current instance 
		// of the class.
		protected virtual void OnAddReceiveEndpointProperty(PropertyPairEvent e)
		{
			if (e != null) 
			{
				// Invokes the delegates. 
				addReceiveEndpointPropertyEvent(this,e);
			}
		}

		private void WzPageReceiveProperties_Load(object sender, System.EventArgs e)
		{
			string []dataTypes = {"xs:boolean",
										"xs:int",
										"xs:long",
										"xs:string"};
			try
			{
				if (isLoaded)
					return;
				foreach(string dataType in dataTypes)
				{
					cmbReceiveHandlerDataType.Items.Add(dataType);
					cmbReceiveEndpointDataType.Items.Add(dataType);
				}
				cmbReceiveHandlerDataType.Text = "xs:string";
				cmbReceiveEndpointDataType.Text = "xs:string";

				isLoaded = true;
			}
			catch(Exception err)
			{
				MessageBox.Show(err.Message);
				Trace.WriteLine(err.Message + Environment.NewLine + err.StackTrace);
			}
			cmbReceiveHandlerDataType.Focus();
#if DEBUG
			txtReceiveEndpointNodeName.Text = "Endpoint1";
			txtReceiveEndpointFriendlyName.Text = "Endpoint1FriendlyName";
			txtReceiveEndpointDesc.Text = "Endpoint1 Description";
			txtReceiveHandlerNodeName.Text = "Handler1";
			txtReceiveHandlerFriendlyName.Text = "Handler1FriendlyName";
			txtReceiveHandlerDesc.Text = "Handler1 Description";
#endif
		}

		private void cmdReceiveHandlerAdd_Click(object sender, System.EventArgs e)
		{
			try
			{
				ResetAllErrProviders();
				if (!Regex.IsMatch(txtReceiveHandlerNodeName.Text,@"^[_a-zA-Z][_a-zA-Z0-9]*$"))
				{
					errorProvider.SetError(txtReceiveHandlerNodeName,
						"Please enter a valid name for the new property");
					return;
				}
				if (VarNameAlreadyExists(txtReceiveHandlerNodeName.Text))
				{
					errorProvider.SetError(txtReceiveHandlerNodeName,
						"Please enter a unique name (different case is not considered unique). Handler and endpoint " +
						"properties cannot have the same name.");
					return;
				}
				
				lstReceiveHandlerProperties.Items.Add(txtReceiveHandlerNodeName.Text + " (" + cmbReceiveHandlerDataType.Text + ")");
				receiveHandlerProperties.Add(
					new AdapterProperty(txtReceiveHandlerNodeName.Text,
										cmbReceiveHandlerDataType.Text,
										txtReceiveHandlerFriendlyName.Text,
										txtReceiveHandlerDesc.Text,
										false));
				txtReceiveHandlerNodeName.Clear();
				txtReceiveHandlerFriendlyName.Clear();
				txtReceiveHandlerDesc.Clear();
				cmbReceiveHandlerDataType.Text = "xs:string";

			}
			catch(Exception err)
			{
				MessageBox.Show(err.Message);
				Trace.WriteLine(err.Message + Environment.NewLine + err.StackTrace);
			}
		}

		private bool VarNameAlreadyExists(string variableName)
		{
			foreach(object o in lstReceiveHandlerProperties.Items)
			{
				string objectValue = o.ToString();
				objectValue = objectValue.Remove(objectValue.IndexOf(" ("),objectValue.Length - objectValue.IndexOf(" ("));
				if (objectValue.ToLower() == variableName.ToLower())
					return true;
			}
			foreach(object o in lstReceiveEndpointProperties.Items)
			{
				string objValue = o.ToString();
				objValue = objValue.Remove(objValue.IndexOf(" ("),objValue.Length - objValue.IndexOf(" ("));
				if (objValue.ToLower() == variableName.ToLower())
					return true;
			}
			return false;
		}

		/// <summary>
		/// Resets all of the errorproviders when anything succeeds
		/// </summary>
		private void ResetAllErrProviders()
		{
			foreach(Control ctl in grpHandler.Controls)
			{
				errorProvider.SetError(ctl,"");
			}
			foreach(Control ctl in grpEndpoint.Controls)
			{
				errorProvider.SetError(ctl,"");
			}
		}

		private void cmdReceiveEndpointAdd_Click(object sender, System.EventArgs e)
		{
			try
			{
				ResetAllErrProviders();
				if (!Regex.IsMatch(txtReceiveEndpointNodeName.Text,@"^[_a-zA-Z][_a-zA-Z0-9]*$"))
				{
					errorProvider.SetError(txtReceiveEndpointNodeName,
						"Please enter a valid name for the new property");
					return;
				}
				if (VarNameAlreadyExists(txtReceiveEndpointNodeName.Text))
				{
					errorProvider.SetError(txtReceiveEndpointNodeName,
						"Please enter a unique name (different case is not considered unique). Handler and endpoint " +
						"properties cannot have the same name.");
					return;
				}
				lstReceiveEndpointProperties.Items.Add(txtReceiveEndpointNodeName.Text + " (" + cmbReceiveEndpointDataType.Text + ")");
				receiveEndpointProperties.Add(
					new AdapterProperty(txtReceiveEndpointNodeName.Text,
										cmbReceiveEndpointDataType.Text,
										txtReceiveEndpointFriendlyName.Text,
										txtReceiveEndpointDesc.Text,
										chkPartOfURI.Checked));
				txtReceiveEndpointNodeName.Clear();
				txtReceiveEndpointFriendlyName.Clear();
				txtReceiveEndpointDesc.Clear();
				cmbReceiveEndpointDataType.Text = "xs:string";

			}
			catch(Exception err)
			{
				MessageBox.Show(err.Message);
				Trace.WriteLine(err.Message + Environment.NewLine + err.StackTrace);
			}
		}

		private void cmdReceiveHandlerDel_Click(object sender, System.EventArgs e)
		{
			try
			{
				ResetAllErrProviders();
				if (lstReceiveHandlerProperties.SelectedItem == null)
				{
					errorProvider.SetError(cmdReceiveHandlerDel,
						"Please select a propValue in the property list");
					return;
				}
				Object objItem = lstReceiveHandlerProperties.SelectedItem;
				string propValue = objItem.ToString();
				string propName = propValue.Substring(0,propValue.IndexOf("(") - 1);
				RemoveReceiveHandlerProperty(propName);
				lstReceiveHandlerProperties.Items.Remove(lstReceiveHandlerProperties.SelectedItem);
				foreach (AdapterProperty ap in receiveHandlerProperties)
				{
					if (ap.Name == propName)
					{
						txtReceiveHandlerNodeName.Text = ap.Name;
						txtReceiveHandlerFriendlyName.Text = ap.FriendlyName;
						txtReceiveHandlerDesc.Text = ap.Description;
						cmbReceiveHandlerDataType.Text = ap.DataType; 
						receiveHandlerProperties.Remove(ap);
						break;
					}
				}
			}
			catch(Exception err)
			{
				MessageBox.Show(err.Message);
				Trace.WriteLine(err.Message + Environment.NewLine + err.StackTrace);
			}	
		}

		private void cmdReceiveEndpointDel_Click(object sender, System.EventArgs e)
		{
			try
			{
				ResetAllErrProviders();
				if (lstReceiveEndpointProperties.SelectedItem == null)
				{
					errorProvider.SetError(cmdReceiveEndpointDel,
						"Please select a propValue in the property list");
					return;
				}
				Object objItem = lstReceiveEndpointProperties.SelectedItem;
				string propValue = objItem.ToString();
				string propName = propValue.Substring(0,propValue.IndexOf("(") - 1);
				RemoveReceiveEndpointProperty(propName);
				lstReceiveEndpointProperties.Items.Remove(lstReceiveEndpointProperties.SelectedItem);
				foreach (AdapterProperty ap in receiveEndpointProperties)
				{
					if (ap.Name == propName)
					{
						txtReceiveEndpointNodeName.Text = ap.Name;
						txtReceiveEndpointFriendlyName.Text = ap.FriendlyName;
						txtReceiveEndpointDesc.Text = ap.Description;
						cmbReceiveEndpointDataType.Text = ap.DataType;
						chkPartOfURI.Checked = ap.PartOfURI;
						receiveEndpointProperties.Remove(ap);
						break;
					}
				}

			}
			catch(Exception err)
			{
				MessageBox.Show(err.Message);
				Trace.WriteLine(err.Message + Environment.NewLine + err.StackTrace);
			}
		}
		
		private void WzPageReceiveProperties_Leave(object sender, System.EventArgs e)
		{
			try
			{
				foreach(AdapterProperty ap in receiveHandlerProperties)
				{
					AddReceiveHandlerProperty(WizardValues.ReceiveHandlerProperty, ap);
				}
				foreach(AdapterProperty ap in receiveEndpointProperties)
				{
					AddReceiveEndpointProperty(WizardValues.ReceiveEndpointProperty, ap);
				}
				receiveHandlerProperties.Clear();
				receiveHandlerProperties.Clear();
			}
			catch(Exception err)
			{
				MessageBox.Show(err.Message);
				Trace.WriteLine(err.Message + Environment.NewLine + err.StackTrace);
			}		
		}

		#region Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WzPageReceiveProperties));
			this.grpHandler = new System.Windows.Forms.GroupBox();
			this.label6 = new System.Windows.Forms.Label();
			this.txtReceiveHandlerDesc = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.txtReceiveHandlerFriendlyName = new System.Windows.Forms.TextBox();
			this.cmdReceiveHandlerDel = new System.Windows.Forms.Button();
			this.cmdReceiveHandlerAdd = new System.Windows.Forms.Button();
			this.cmbReceiveHandlerDataType = new System.Windows.Forms.ComboBox();
			this.label2 = new System.Windows.Forms.Label();
			this.lstReceiveHandlerProperties = new System.Windows.Forms.ListBox();
			this.label1 = new System.Windows.Forms.Label();
			this.txtReceiveHandlerNodeName = new System.Windows.Forms.TextBox();
			this.grpEndpoint = new System.Windows.Forms.GroupBox();
			this.label7 = new System.Windows.Forms.Label();
			this.txtReceiveEndpointDesc = new System.Windows.Forms.TextBox();
			this.label8 = new System.Windows.Forms.Label();
			this.txtReceiveEndpointFriendlyName = new System.Windows.Forms.TextBox();
			this.cmdReceiveEndpointDel = new System.Windows.Forms.Button();
			this.label3 = new System.Windows.Forms.Label();
			this.cmdReceiveEndpointAdd = new System.Windows.Forms.Button();
			this.lstReceiveEndpointProperties = new System.Windows.Forms.ListBox();
			this.label4 = new System.Windows.Forms.Label();
			this.txtReceiveEndpointNodeName = new System.Windows.Forms.TextBox();
			this.cmbReceiveEndpointDataType = new System.Windows.Forms.ComboBox();
			this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.chkPartOfURI = new System.Windows.Forms.CheckBox();
			this.panelHeader.SuspendLayout();
			this.grpHandler.SuspendLayout();
			this.grpEndpoint.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
			this.SuspendLayout();
			// 
			// labelTitle
			// 
			resources.ApplyResources(this.labelTitle, "labelTitle");
			// 
			// labelSubTitle
			// 
			resources.ApplyResources(this.labelSubTitle, "labelSubTitle");
			// 
			// grpHandler
			// 
			this.grpHandler.Controls.Add(this.label6);
			this.grpHandler.Controls.Add(this.txtReceiveHandlerDesc);
			this.grpHandler.Controls.Add(this.label5);
			this.grpHandler.Controls.Add(this.txtReceiveHandlerFriendlyName);
			this.grpHandler.Controls.Add(this.cmdReceiveHandlerDel);
			this.grpHandler.Controls.Add(this.cmdReceiveHandlerAdd);
			this.grpHandler.Controls.Add(this.cmbReceiveHandlerDataType);
			this.grpHandler.Controls.Add(this.label2);
			this.grpHandler.Controls.Add(this.lstReceiveHandlerProperties);
			this.grpHandler.Controls.Add(this.label1);
			this.grpHandler.Controls.Add(this.txtReceiveHandlerNodeName);
			resources.ApplyResources(this.grpHandler, "grpHandler");
			this.grpHandler.Name = "grpHandler";
			this.grpHandler.TabStop = false;
			// 
			// label6
			// 
			resources.ApplyResources(this.label6, "label6");
			this.label6.Name = "label6";
			// 
			// txtReceiveHandlerDesc
			// 
			resources.ApplyResources(this.txtReceiveHandlerDesc, "txtReceiveHandlerDesc");
			this.txtReceiveHandlerDesc.Name = "txtReceiveHandlerDesc";
			// 
			// label5
			// 
			resources.ApplyResources(this.label5, "label5");
			this.label5.Name = "label5";
			// 
			// txtReceiveHandlerFriendlyName
			// 
			resources.ApplyResources(this.txtReceiveHandlerFriendlyName, "txtReceiveHandlerFriendlyName");
			this.txtReceiveHandlerFriendlyName.Name = "txtReceiveHandlerFriendlyName";
			// 
			// cmdReceiveHandlerDel
			// 
			resources.ApplyResources(this.cmdReceiveHandlerDel, "cmdReceiveHandlerDel");
			this.cmdReceiveHandlerDel.Name = "cmdReceiveHandlerDel";
			this.cmdReceiveHandlerDel.Click += new System.EventHandler(this.cmdReceiveHandlerDel_Click);
			// 
			// cmdReceiveHandlerAdd
			// 
			resources.ApplyResources(this.cmdReceiveHandlerAdd, "cmdReceiveHandlerAdd");
			this.cmdReceiveHandlerAdd.Name = "cmdReceiveHandlerAdd";
			this.cmdReceiveHandlerAdd.Click += new System.EventHandler(this.cmdReceiveHandlerAdd_Click);
			// 
			// cmbReceiveHandlerDataType
			// 
			this.cmbReceiveHandlerDataType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			resources.ApplyResources(this.cmbReceiveHandlerDataType, "cmbReceiveHandlerDataType");
			this.cmbReceiveHandlerDataType.Name = "cmbReceiveHandlerDataType";
			// 
			// label2
			// 
			resources.ApplyResources(this.label2, "label2");
			this.label2.Name = "label2";
			// 
			// lstReceiveHandlerProperties
			// 
			resources.ApplyResources(this.lstReceiveHandlerProperties, "lstReceiveHandlerProperties");
			this.lstReceiveHandlerProperties.Name = "lstReceiveHandlerProperties";
			// 
			// label1
			// 
			resources.ApplyResources(this.label1, "label1");
			this.label1.Name = "label1";
			// 
			// txtReceiveHandlerNodeName
			// 
			resources.ApplyResources(this.txtReceiveHandlerNodeName, "txtReceiveHandlerNodeName");
			this.txtReceiveHandlerNodeName.Name = "txtReceiveHandlerNodeName";
			// 
			// grpEndpoint
			// 
			this.grpEndpoint.Controls.Add(this.chkPartOfURI);
			this.grpEndpoint.Controls.Add(this.label7);
			this.grpEndpoint.Controls.Add(this.txtReceiveEndpointDesc);
			this.grpEndpoint.Controls.Add(this.label8);
			this.grpEndpoint.Controls.Add(this.txtReceiveEndpointFriendlyName);
			this.grpEndpoint.Controls.Add(this.cmdReceiveEndpointDel);
			this.grpEndpoint.Controls.Add(this.label3);
			this.grpEndpoint.Controls.Add(this.cmdReceiveEndpointAdd);
			this.grpEndpoint.Controls.Add(this.lstReceiveEndpointProperties);
			this.grpEndpoint.Controls.Add(this.label4);
			this.grpEndpoint.Controls.Add(this.txtReceiveEndpointNodeName);
			this.grpEndpoint.Controls.Add(this.cmbReceiveEndpointDataType);
			resources.ApplyResources(this.grpEndpoint, "grpEndpoint");
			this.grpEndpoint.Name = "grpEndpoint";
			this.grpEndpoint.TabStop = false;
			// 
			// label7
			// 
			resources.ApplyResources(this.label7, "label7");
			this.label7.Name = "label7";
			// 
			// txtReceiveEndpointDesc
			// 
			resources.ApplyResources(this.txtReceiveEndpointDesc, "txtReceiveEndpointDesc");
			this.txtReceiveEndpointDesc.Name = "txtReceiveEndpointDesc";
			// 
			// label8
			// 
			resources.ApplyResources(this.label8, "label8");
			this.label8.Name = "label8";
			// 
			// txtReceiveEndpointFriendlyName
			// 
			resources.ApplyResources(this.txtReceiveEndpointFriendlyName, "txtReceiveEndpointFriendlyName");
			this.txtReceiveEndpointFriendlyName.Name = "txtReceiveEndpointFriendlyName";
			// 
			// cmdReceiveEndpointDel
			// 
			resources.ApplyResources(this.cmdReceiveEndpointDel, "cmdReceiveEndpointDel");
			this.cmdReceiveEndpointDel.Name = "cmdReceiveEndpointDel";
			this.cmdReceiveEndpointDel.Click += new System.EventHandler(this.cmdReceiveEndpointDel_Click);
			// 
			// label3
			// 
			resources.ApplyResources(this.label3, "label3");
			this.label3.Name = "label3";
			// 
			// cmdReceiveEndpointAdd
			// 
			resources.ApplyResources(this.cmdReceiveEndpointAdd, "cmdReceiveEndpointAdd");
			this.cmdReceiveEndpointAdd.Name = "cmdReceiveEndpointAdd";
			this.cmdReceiveEndpointAdd.Click += new System.EventHandler(this.cmdReceiveEndpointAdd_Click);
			// 
			// lstReceiveEndpointProperties
			// 
			resources.ApplyResources(this.lstReceiveEndpointProperties, "lstReceiveEndpointProperties");
			this.lstReceiveEndpointProperties.Name = "lstReceiveEndpointProperties";
			// 
			// label4
			// 
			resources.ApplyResources(this.label4, "label4");
			this.label4.Name = "label4";
			// 
			// txtReceiveEndpointNodeName
			// 
			resources.ApplyResources(this.txtReceiveEndpointNodeName, "txtReceiveEndpointNodeName");
			this.txtReceiveEndpointNodeName.Name = "txtReceiveEndpointNodeName";
			// 
			// cmbReceiveEndpointDataType
			// 
			this.cmbReceiveEndpointDataType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			resources.ApplyResources(this.cmbReceiveEndpointDataType, "cmbReceiveEndpointDataType");
			this.cmbReceiveEndpointDataType.Name = "cmbReceiveEndpointDataType";
			// 
			// errorProvider
			// 
			this.errorProvider.ContainerControl = this;
			resources.ApplyResources(this.errorProvider, "errorProvider");
			// 
			// chkPartOfURI
			// 
			resources.ApplyResources(this.chkPartOfURI, "chkPartOfURI");
			this.chkPartOfURI.Checked = true;
			this.chkPartOfURI.CheckState = System.Windows.Forms.CheckState.Checked;
			this.chkPartOfURI.Name = "chkPartOfURI";
			this.chkPartOfURI.UseVisualStyleBackColor = true;
			// 
			// WzPageReceiveProperties
			// 
			this.Controls.Add(this.grpHandler);
			this.Controls.Add(this.grpEndpoint);
			this.Name = "WzPageReceiveProperties";
			this.SubTitle = "Specify receive adapter properties";
			this.Title = "Receive side properties";
			this.Load += new System.EventHandler(this.WzPageReceiveProperties_Load);
			this.Leave += new System.EventHandler(this.WzPageReceiveProperties_Leave);
			this.Controls.SetChildIndex(this.panelHeader, 0);
			this.Controls.SetChildIndex(this.grpEndpoint, 0);
			this.Controls.SetChildIndex(this.grpHandler, 0);
			this.panelHeader.ResumeLayout(false);
			this.grpHandler.ResumeLayout(false);
			this.grpHandler.PerformLayout();
			this.grpEndpoint.ResumeLayout(false);
			this.grpEndpoint.PerformLayout();
			((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

	}
}

